// https://nuxt.com/docs/api/configuration/nuxt-config

export default defineNuxtConfig({
  devtools: { enabled: false },
   devServer: {
    host: '192.168.1.131', //自己电脑的Ip
    port: 3009,
  },
  // css单独文件引用，不使用内联
  experimental: {
    inlineSSRStyles: false
  },

  modules: ['@element-plus/nuxt'],

  plugins: [

  ],

  css: ['@/assets/css/main.css', 'animate.css', 'element-plus/dist/index.css', 'element-plus/theme-chalk/display.css'],

  postcss: {

  },

  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: '@use "assets/scss/main.scss";@use "assets/scss/variable.scss" as *;'
        }
      }
    }
  },

  app: {
    head: {
      viewport: 'width=device-width, initial-scale=1.0',
      title: '红河大成房地产',
      meta: [
        { name: 'keywords', content: '红河大成房地产' },
        {
          name: 'description',
          content: '红河大成房地产,融合文旅，康养生活，做健康与幸福缔造者,将文化、旅游与康养完美融合，打造独特而令人向往的生活方式,红河大成房地产有限公司,做健康与幸福缔造者'
        }
      ],
      link: [{ rel: 'icon', type: 'image/x-icon', href: '/dacheng.ico' }],
      script: [
        {
          type: "text/javascript",
          src: "https://map.qq.com/api/js?v=2.exp&key=CXSBZ-K2G6N-HFVFQ-SLN4W-ULSZO-FUBEM",
        },
      ]
    }
  },

  runtimeConfig: {
    public: {
      apiBase: '/server',
      globalTitle: '大成'
    }
  },

  nitro: {
    devProxy: {

    }
   
  },

  compatibilityDate: '2025-03-26'
});